package itrans;

public class UserBean implements java.io.Serializable {
    /** the username and password */
    private String _username, _password, _firstname, _lastname, _email, _phone;
    private boolean _loggedIn;
    private int _id;

	/** default constructor */
    public UserBean() {
		setUsername("");
		setPassword("");
		setFirstName("");
		setLastName("");
		setEmail("");
		setPhone("");
		setLoggedIn(false);
		setId(0);
    }

    /* Note the getter/setter method names used here appear as JSP
     * property names without the get/set part (e.g. getuid() here
     * becomes just property uid in JSP).
     * 
     * Also note case-sensitivity. The get/set part is removed, and
     * the first letter is case-insensitive-case. However, the rest of
     * the name is case sensitive
     * 
     * So for example in the HTML form field if you wanted to set the
     * property of the first name, you would call it `firstName` or
     * `FirstName`, but it wouldn't work if you called it anything else
     * such as `first_name`, `firstname`, ...
     */
    
    public String getUsername() {  return this._username; }
	public String getPassword() { return this._password;}
	public String getFirstName() { return this._firstname; }
	public String getLastName() { return this._lastname; }
	public String getEmail() { return this._email; }
	public String getPhone() { return this._phone; }
	public boolean getLoggedIn() {return this._loggedIn; }
	public int getId() { return this._id; }
	
	public void setUsername(String username) { this._username = username;}
	public void setPassword(String password) { this._password = password;} 
	public void setFirstName(String firstName) { this._firstname = firstName;}
	public void setLastName(String lastName) {this._lastname = lastName; }
	public void setEmail(String email) {this._email = email; }
	public void setPhone(String phone) {this._phone = phone; }
	public void setLoggedIn(boolean loggedIn) {this._loggedIn = loggedIn; }
	public void setId(int id) { this._id = id; }
}
